<br />
<a href="<?php echo base_url().'kategori/add' ?>"><img src="<?php echo base_url().'assets/images/2.png' ?>"  />Tambah</a>
<table width="640" border="0" cellpadding="0" cellspacing="0" class="table">
  <tr>
    <th width="32">No</th>
    <th width="498">Kategori</th>
    <th width="110">Aksi</th>
 
  </tr>
 <?php $i=1+$urutan; ?>
  <?php foreach ($query as $row) { ?>
  <tr class="<?php if ($i %2 == 0) echo 'zebra';?>">
    <td><?php echo $i; ?></td>
    <td><?php echo $row['nama_kategori'] ?></td>
    <td><?php echo anchor('kategori/edit/'.$row['id_kategori'],'Edit') ?> | 
	<a href="<?php echo base_url().'kategori/delete/'.$row['id_kategori'] ?>">Hapus</a></td>
<?php $i++;
 } ?>
  </tr>
  
</table>
<?php echo $this->pagination->create_links();?>